home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet 2002 February / Practical Internet February 2002.iso / pc / Software / SiteBuilding / HomeSite_Installer.exe / data1.cab / Extensions / Includes / wmReplaceAll.wizml < prev   
Encoding:
Text File  |  2001-10-11  |  623 b   |  12 lines

  1. <WIZIF 0><!-- Copyright  (c) 1997-2001 Macromedia, Inc. All Rights Reserved. Consult Software License Agreement for more details.  Version 1.0 - 2001-05-30 --></WIZIF>
  2. <WIZIF 0><!--
  3.     Replace All function: replaces all occurrences of a substring by another
  4.     varString:    Variable where substring needs replacing
  5.     varFind:    Substring to be replaced
  6.     varReplace:    Replacement substring
  7. --></WIZIF>
  8. <WIZLOOP CONDITION = 'Find(varString, varFind)'>
  9.     <WIZSET Pos = Find(varString, varFind)>
  10.     <WIZSET varString = Left(varString, Pos - 1) & varReplace & Right(varString, Len(varString) - Pos - Len(varFind) + 1)>
  11. </WIZLOOP>
  12.